home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / VBSamples / DirectPlay / Chat / readme.txt < prev    next >
Text File  |  2001-10-10  |  2KB  |  57 lines

  1. //-----------------------------------------------------------------------------
  2. // 
  3. // Sample Name: VB Chat Sample
  4. // 
  5. // Copyright (C) 1999-2001 Microsoft Corporation. All rights reserved.
  6. // 
  7. //-----------------------------------------------------------------------------
  8.  
  9.  
  10. Description
  11. ===========
  12.   Chat is similar in form to SimplePeer.  Once a player hosts or connects
  13.   to a session, the players can chat with either other by passing text 
  14.   strings.
  15.   
  16. Path
  17. ====
  18.   Source: DXSDK\Samples\Multimedia\VBSamples\DirectPlay\Chat
  19.  
  20.   Executable: DXSDK\Samples\Multimedia\VBSamples\DirectPlay\Bin
  21.  
  22. User's Guide
  23. ============
  24.   Refer to User's Guide section of the SimplePeer sample.
  25.  
  26. Programming Notes
  27. =================
  28.   The ChatPeer sample is very similar in form to the SimplePeer sample.  For 
  29.   detailed programming notes on the basics this sample, refer to Programming 
  30.   Notes section of the SimplePeer sample.
  31.  
  32.   The ChatPeer differs by letting clients send text strings to all players
  33.   connected to the session.
  34.   
  35.   * The <Enter> key is pressed.  See txtSend_KeyPress.
  36.         1. Retrieves the text string from the dialog.
  37.         2. Fills out a byte array using the string.
  38.         3. Calls DirectPlay8Peer.SendTo with the byte array.  It passes 
  39.            DPNID_ALL_PLAYERS_GROUP so this message goes to everyone. 
  40.    
  41.   * The "Whisper" button is pressed.  See cmdWhisper_Click.
  42.         1. Retrieves the text string from the dialog.
  43.         2. Fills out a byte array using the string.
  44.         3. Calls DirectPlay8Peer.SendTo with the byte array.  It passes 
  45.            the DPNID of the player so this message only goes to the person you
  46.            are whispering too. 
  47.  
  48.   * Handle DirectPlay system messages.  See implemented DirectPlay8Event interfaces
  49.  
  50.         The Chat sample handles the typical messages as described in the 
  51.         SimplePeer programming notes, and in addition:
  52.         
  53.         - Upon Receive event: 
  54.             *Checks if this is a chat message or a whisper message.
  55.             *Retrieve the string from the byte array we receive.
  56.             *Update the UI accordingly.
  57.